const { BrowserWindow, app } = require("electron")

app.whenReady().then(() => {
  createTrayWindow()
})

let mainWindow
function createTrayWindow() {
  mainWindow = new BrowserWindow({
    width: 1200,
    height: 1000,
    webPreferences: {
      webviewTag: true,
    },
  })
  mainWindow.webContents.openDevTools()
  mainWindow.loadURL('http://127.0.0.1:3000')
}